/* Style Changer */


jQuery(document).ready(function(){

	/* Color Scheme */
	/*jQuery('#stlChanger .hdrStBgs .hdrCols span').click(function(){
		
		var hdrCol = jQuery(this).attr('title');
		
		
		
		jQuery('#stlChanger .hdrStBgs .hdrCols span').removeClass('current');
		jQuery(this).addClass('current');
		
		jQuery('#stlChanger').find('#cFontWColor1').css({backgroundColor:'#' + hdrCol});
		
		jQuery('#master_directory_theme_color').attr('value', '#' + hdrCol);
		
			jQuery('#cFontStyleWColor1').text('a, .color_3, q:before, blockquote:before, .blog .post h2.entry-title a:hover, .portfolio_container .portfolio .entry-title a:hover, ul.p_filter li.current a, ul.p_filter li a:hover, .blog.short .post .entry-title a:hover, h5 {color:#' + hdrCol + ';}');
			
			
			
			jQuery('#cFontStyleWColor2').text('code:before, span.dropcap2, .table thead th, .colored_block, #navigation li.current_page_item > a, #navigation li:hover > a:hover, #navigation ul li:hover > a, .post .published, .shortcode_slideshow ul.shortcode_slideshow_pager li.current a, .shortcode_slideshow ul.shortcode_slideshow_pager li a:hover, .wp-pagenavi a, .cmsmsLike:hover, .cmsmsLike.active, .button, .button_medium, .button_large, .logo img {background-color:#' + hdrCol + ';}');
			jQuery('#cFontStyleWColor3').text('input[type="text"]:focus, textarea:focus, #bottom input[type="text"]:focus, #bottom textarea:focus, .cmsmsLike:hover {border-color:#' + hdrCol + ';}');
			jQuery('#cFontStyleWColor4').text('#header, #navigation > li > ul > li:first-child > a {border-top-color:#' + hdrCol + ';}');
			jQuery('#cFontStyleWColor5').text('#navigation ul li.current_page_item:first-child > a:before, #navigation ul li:first-child > a:hover:before, #navigation ul li.current_page_item:first-child:hover > a:hover:before, #navigation ul li:first-child > a:before	{border-bottom-color:#' + hdrCol + ';}');
		return false;
	});*/
	
	/* Color Scheme */
	/*jQuery('#stlChanger #cFontWColor1').parent('a').ColorPicker({
		onChange:function(hsb, hex, rgb){
			//$("a").css("color", "#" + hex);
			jQuery('#stlChanger').find('#cFontWColor1').css({backgroundColor:'#' + hex});
			jQuery('#cFontStyleWColor1').text('a, .color_3, q:before, blockquote:before, .blog .post h2.entry-title a:hover, .portfolio_container .portfolio .entry-title a:hover, ul.p_filter li.current a, ul.p_filter li a:hover, .blog.short .post .entry-title a:hover, h5 {color:#' + hex + ';}');
			jQuery('#cFontStyleWColor2').text('code:before, span.dropcap2, .table thead th, .colored_block, #navigation li.current_page_item > a, #navigation li:hover > a:hover, #navigation ul li:hover > a, .post .published, .shortcode_slideshow ul.shortcode_slideshow_pager li.current a, .shortcode_slideshow ul.shortcode_slideshow_pager li a:hover, .wp-pagenavi a, .cmsmsLike:hover, .cmsmsLike.active, .button, .button_medium, .button_large, .logo img {background-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor3').text('input[type="text"]:focus, textarea:focus, #bottom input[type="text"]:focus, #bottom textarea:focus, .cmsmsLike:hover {border-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor4').text('#header, #navigation > li > ul > li:first-child > a {border-top-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor5').text('#navigation ul li.current_page_item:first-child > a:before, #navigation ul li:first-child > a:hover:before, #navigation ul li.current_page_item:first-child:hover > a:hover:before, #navigation ul li:first-child > a:before {border-bottom-color:#' + hex + ';}');
			
			jQuery('#master_directory_theme_color').attr('value', '#' + hex);
		},
		onSubmit:function(hsb, hex, rgb, el){
			//$("a").css("color", "#" + hex);
			jQuery('#cFontStyleWColor1').text('a, .color_3, q:before, blockquote:before, .blog .post h2.entry-title a:hover, .portfolio_container .portfolio .entry-title a:hover, ul.p_filter li.current a, ul.p_filter li a:hover, .blog.short .post .entry-title a:hover, h5 {color:#' + hex + ';}');
			jQuery('#cFontStyleWColor2').text('code:before, span.dropcap2, .table thead th, .colored_block, #navigation li.current_page_item > a, #navigation li:hover > a:hover, #navigation ul li:hover > a, .post .published, .shortcode_slideshow ul.shortcode_slideshow_pager li.current a, .shortcode_slideshow ul.shortcode_slideshow_pager li a:hover, .wp-pagenavi a, .cmsmsLike:hover, .cmsmsLike.active, .button, .button_medium, .button_large, .logo img {background-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor3').text('input[type="text"]:focus, textarea:focus, #bottom input[type="text"]:focus, #bottom textarea:focus, .cmsmsLike:hover {border-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor4').text('#header, #navigation > li > ul > li:first-child > a {border-top-color:#' + hex + ';}');
			jQuery('#cFontStyleWColor5').text('#navigation ul li.current_page_item:first-child > a:before, #navigation ul li:first-child > a:hover:before, #navigation ul li.current_page_item:first-child:hover > a:hover:before, #navigation ul li:first-child > a:before {border-bottom-color:#' + hex + ';}');
			jQuery(el).find('#cFontWColor1').css({backgroundColor:'#' + hex});
			jQuery(el).find('#cFontWColor1').attr({title:hex});
			jQuery(el).ColorPickerHide();
			jQuery('#master_directory_theme_color').attr('value', '#' + hex);
		},
		onBeforeShow:function(){
			jQuery(this).ColorPickerSetColor(jQuery('#stlChanger').find('#cFontWColor1').attr('title'));
		}
	});*/

	
	//if (jQuery(window).height() < 750){ jQuery('#stlChanger').css({position:'absolute'}); }

	
	/* Style Changer Autohide */
	/*jQuery('.chBut').parent().delay(1000).animate({left:'-120px'}, 500, function(){
		jQuery(this).find('.chBut').next('.chBody').css({display:'none'});
		jQuery(this).find('.chBut').addClass('closed');
	}); */
	
	
	/* Style Changer Toggle */
	/*jQuery('.chBut').click(function(){
		if (jQuery(this).hasClass('closed')){
			jQuery(this).next('.chBody').css({display:'block'}).parent().animate({left:0}, 500, function(){
				jQuery(this).find('.chBut').removeClass('closed');
			});
		} else {
			jQuery(this).parent().animate({left:'-120px'}, 500, function(){
				jQuery(this).find('.chBut').next('.chBody').css({display:'none'});
				jQuery(this).find('.chBut').addClass('closed');
			});
		}
		
		return false;
	});*/
	

	/* Window Resize Function */
	/*
	jQuery(window).resize(function(){
		if (jQuery(window).height() < 750){
			jQuery('#stlChanger').css({position:'absolute'});
		} else {
			jQuery('#stlChanger').css({position:'fixed'});
		}
	});
	*/
});
